﻿var baseCourse = ["呼叫中心介绍", "呼叫中心流程", "计算机基础", "办公室礼仪"];
var professionalCourse = ["数据清洗", "活动邀请", "市场调查", "电话营销", "产品咨询", "活动报名", "技术支持", "投诉处理", "邮件及留言处理"];

var callOut = [
                 [baseCourse[0], baseCourse[1]]
               , [professionalCourse[0], professionalCourse[1], professionalCourse[2], professionalCourse[3]]
              ];
var callIn = [
                 [baseCourse[0], baseCourse[1]]
               , [professionalCourse[4], professionalCourse[5], professionalCourse[6], professionalCourse[7]]
             ];
var essence = [
                 [baseCourse[0], baseCourse[1]]
               , professionalCourse
             ];
var flagship = [
                 baseCourse
               , professionalCourse
             ];

function GetCertificateCourseIntro(v) {
  var html = "";
  switch (v) {
    case 1:
      html = Template(callOut);
      break;
    case 2:
      html = Template(callIn);
      break;
    case 3:
      html = Template(essence);
      break;
    case 4:
      html = Template(flagship);
      break;
    default:
      break;
  }
  document.getElementById("CourseIntro").innerHTML = html;
}            

//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 62px;display:inline;\">- 呼叫中心知识</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 41px;display:inline;\">业务课程</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 62px;display:inline;\">- 呼入课程</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 产品咨询</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 活动报名</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 技术支持</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 投诉处理</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 62px;display:inline;\">- 呼出课程</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 数据清洗</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 活动邀请</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 市场调查</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 电话营销</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 62px;display:inline;\">- 非语音课程</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 82px;display:inline;\">- 邮件及留言处理</div>\r\n";
//template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 12px;display:inline;\"><img alt=\"\" src=\"images/icon/icon_09.gif\" /></div>\r\n";

function Template(certificateArr) {
  var template = "<div class=\"fl width_01\" style=\"margin:20px 0 0 41px;display:inline;\">基础课程</div>\r\n";
  for (var i = 0; i < certificateArr[0].length; i++) {
    template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 62px;display:inline;\">" + certificateArr[0][i] + "</div>\r\n";
  }
  template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 12px;display:inline;\"><img alt=\"\" src=\"images/icon/icon_09.gif\" /></div>\r\n";
  template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 41px;display:inline;\">业务课程</div>\r\n";
  for (var i = 0; i < certificateArr[1].length; i++) {
    template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 62px;display:inline;\">" + certificateArr[1][i] + "</div>\r\n";
  }
  template += "<div class=\"fl width_01\" style=\"margin:4px 0 0 12px;display:inline;\"><img alt=\"\" src=\"images/icon/icon_09.gif\" /></div>\r\n";
  
  return template;
}